package main

import "fmt"

//动态增加map长度
func main() {
	maps := make([]map[string]string, 2)
	maps[0] = map[string]string{
		"name" : "hello",
		"age" : "100",
	}
	maps[1] = map[string]string{
		"name" : "world",
		"age" : "200",
	}
	fmt.Println(maps)

	temp := map[string]string{
		"name" : "golang",
		"age" : "300",
	}
	maps = append(maps, temp)

	fmt.Println(maps)
}